package com.loongtech.bi.entity.realTime;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "realtime_onlinenum_by_quantum")
public class EntityOnlineByQuantum implements Serializable {
	private static final long serialVersionUID = 2L;

	@Id
	private Date day; // 日期
	@Id
	private String quantum;
	@Id
	private String serverid;
	@Id
	private String channelid;
	@Id
	private String platformid;
	@Column(columnDefinition="bigint(20) NOT NULL default 0")
	private long onlinenum;

	public Date getDay() {
		return day;
	}

	public void setDay(Date day) {
		this.day = day;
	}

	public String getServerid() {
		return serverid;
	}

	public void setServerid(String serverid) {
		this.serverid = serverid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public String getPlatformid() {
		return platformid;
	}

	public void setPlatformid(String platformid) {
		this.platformid = platformid;
	}

	public String getQuantum() {
		return quantum;
	}

	public void setQuantum(String quantum) {
		this.quantum = quantum;
	}

	public long getOnlinenum() {
		return onlinenum;
	}

	public void setOnlinenum(long onlinenum) {
		this.onlinenum = onlinenum;
	}
}